import 'package:flutter2/generated/json/base/json_convert_content.dart';
import 'package:flutter2/model/sheet_item_entity.dart';

SheetItemEntity $SheetItemEntityFromJson(Map<String, dynamic> json) {
  final SheetItemEntity sheetItemEntity = SheetItemEntity();
  final String? code = jsonConvert.convert<String>(json['benefitsailorsuspect']);
  if (code != null) {
    sheetItemEntity.code = code;
  }
  final String? value = jsonConvert.convert<String>(json['fridgesuck']);
  if (value != null) {
    sheetItemEntity.value = value;
  }
  return sheetItemEntity;
}

Map<String, dynamic> $SheetItemEntityToJson(SheetItemEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['benefitsailorsuspect'] = entity.code;
  data['fridgesuck'] = entity.value;
  return data;
}

extension SheetItemEntityExtension on SheetItemEntity {
  SheetItemEntity copyWith({
    String? code,
    String? value,
  }) {
    return SheetItemEntity()
      ..code = code ?? this.code
      ..value = value ?? this.value;
  }
}